home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / misc_src / cslib16b / include / cstempl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-01  |  2.1 KB  |  87 lines

  1. /***********************************************************************
  2.  
  3.                                        CSA Library, Version 1.6.b 
  4.                                          Released: March 2nd 1995 
  5.  
  6.        Template functions, for use with the FIELD/PANEL
  7.        classes.
  8.  
  9.                                            Copyright(c) 1994,1995 
  10.                                                            Combis 
  11.                                                   The Netherlands 
  12. ***********************************************************************/
  13.  
  14. #ifndef _CSTEMPL_H
  15. #define _CSTEMPL_H
  16.  
  17. #include "cstypes.h"
  18.  
  19.   /*
  20.      Symbols:
  21.  
  22.     n    0123456789-+   Blank allowed.
  23.     N    0123456789-+   Blank NOT allowed.
  24.     o    0123456789     Blank allowed.
  25.     O    0123456789     Blank NOT allowed.
  26.     p     123456789-+   Blank allowed.
  27.     P     123456789-+   Blank NOT allowed.
  28.     q     123456789     Blank allowed.
  29.     Q     123456789     Blank NOT allowed.
  30.     s     -+           Blank allowed.
  31.     S     -+           Blank NOT allowed.
  32.     A     The characters from the alfabet. Blanks NOT allowed.
  33.     a     The characters from the alfabet including ,.;: .
  34.     C     A or 9
  35.     c     a or n
  36.  
  37.  
  38.  
  39.    128+ below:
  40.        1    123456789
  41.        2    0
  42.        4    BLANK
  43.        8    -+
  44.       16    ~`!@#$%^&*()_=|\}{[]":;'?><,./
  45.       32    abcdefghijklmnopqrstuvwxyz
  46.       64    CAPITALS
  47.  
  48.  
  49.  
  50.  
  51. Use of the "OR":
  52.  
  53.    syntax:   [templ1|templ2|templ3]
  54.  
  55.  
  56.  Special symbol: @
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.   */
  64.  
  65.  
  66. ////////////////////////////// 'Private' functions ////////////////////////
  67. int   allow_or(int &RC,uchar c,uchar * &s,int delta);
  68. int   in_templ(uchar c,int pos,uchar *tpt);
  69. int   is_templ2(uchar c,uchar symbol);
  70. void  tmpt_join_ors(uchar *templ,uchar *tmplt);
  71. uchar tmpt_symbol(uchar * & poi);
  72. int   tmplt_or(uchar *& s,uchar * &tpt);
  73. int   tmpt_in_bit(uchar c);
  74. int   temp_or(uchar *d,uchar * &s,int delta);
  75.  
  76.  
  77. ////////////////////////////// 'PUBLIC' functions /////////////////////////
  78.  
  79. void tmplt_c1(uchar *in,uchar *out);
  80. int  tmplt(uchar *s,uchar *tpt);
  81. int  tmplt_length(uchar *s);
  82. int  allowed(uchar c,int pos,uchar *templ);
  83.  
  84.  
  85.  
  86. #endif
  87.